Release 10.1A: OpenEdge Development:
ProDataSets
Using the SAVE-ROW-CHANGES method in the update procedure
If you open up the
updateOrder.pprocedure again, you can replace the wholeCASEstatement with theSAVE-ROW-CHANGESmethod, as shown:
You can save this and rerun the window procedure to confirm that the save works the same as before.
SAVE-ROW-CHANGESsaves you all the work of the steps you coded individually in theCASEstatement. You can still take advantage of the attributes and methods you used if you need to perform some part of the work ofSAVE-ROW-CHANGESwithout using all of what it does. The default transaction handling is to treat each individual row save as its own transaction. If you want a larger transaction scope, you can define theDO TRANSACTIONblock at the level that is appropriate. Remember that there is noSAVE-CHANGESmethod to apply all changes in a single method call because there is so much variety both to the order in which the changes should be applied and to the transaction scope used for the changes.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |